package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@Data
/**
 * 订单附件对象 order_attachment
 *
 * @author hjf
 * @date 2025-06-23
 */
public class OrderAttachment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 订单id
     */
    @Excel(name = "订单id")
    private Long orderId;

    /**
     * 订单跟进记录id
     */
    @Excel(name = "跟进记录id")
    private Long orderFollow;

    /**
     * 上传人id
     */
    @Excel(name = "上传人id")
    private Long userId;

    /**
     * 文件类型1图片2音频
     */
    @Excel(name = "文件类型1图片2音频")
    private String fileType;

    /**
     * 文件名
     */
    @Excel(name = "文件名")
    private String objectPath;

    private String fullPath;

    private String nickName;


    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderFollow(Long orderFollow) {
        this.orderFollow = orderFollow;
    }

    public Long getOrderFollow() {
        return orderFollow;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getFileType() {
        return fileType;
    }

    public void setObjectPath(String objectPath) {
        this.objectPath = objectPath;
    }

    public String getObjectPath() {
        return objectPath;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderId", getOrderId())
                .append("orderFollow", getOrderFollow())
                .append("userId", getUserId())
                .append("fileType", getFileType())
                .append("objectPath", getObjectPath())
                .append("createTime", getCreateTime())
                .toString();
    }
}
